package com.yuanqi.java.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yuanqi.java.entity.PurchaseReturnOrder;
import com.yuanqi.java.dto.PurchaseReturnOrderVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 采购退货单Mapper
 */
@Mapper
public interface PurchaseReturnOrderMapper extends BaseMapper<PurchaseReturnOrder> {

    /**
     * 分页查询退货单
     */
    IPage<PurchaseReturnOrderVO> selectReturnOrderPage(Page<PurchaseReturnOrder> page, 
                                                      @Param("status") Integer status,
                                                      @Param("returnNo") String returnNo);

    /**
     * 根据ID查询退货单详情
     */
    PurchaseReturnOrderVO selectReturnOrderDetail(@Param("id") Long id);
} 